{*
* 2007-2011 PrestaShop 
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <contact@prestashop.com>
*  @copyright  2007-2011 PrestaShop SA
*  @version  Release: $Revision: 8290 $
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}

{if isset($products)}
	<!-- Products list -->
	<ul id="product_list" class="clear">
	{foreach from=$products item=product name=products}
		<li class="ajax_block_product {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if} {if $smarty.foreach.products.index % 2}alternate_item{else}item{/if} clearfix">
			<div class="dl_product_img_block">
				<a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'cat_list')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} /></a>
			</div>
			
			<div class="dl_product_name">
				<h3>{$product.name|truncate:25:'...'|escape:'htmlall':'UTF-8'}</h3>
			</div>
			
			<div class="dl_product_feature2">
				<div class="dl_product_feature">
					<ul>
						{if isset($product.new) && $product.new == 1}<li class="new"><span class="color_red">{l s='New'}</span></li>{/if}
						
						{if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<li class="on_sale">{l s='On sale!'}</li>
						{elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<li class="discount"><span class="color_red">{l s='Reduced price!'}</span></li>{/if}
						{if isset($product.online_only) && $product.online_only}<li class="online_only">{l s='Online only!'}</li>{/if}
						{if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}<li class="availability">{if ($product.allow_oosp || $product.quantity > 0)}{l s='Available'}{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}{l s='Product available with different options'}{else}{l s='Out of stock'}{/if}</li>{/if}
					</ul>
				</div>
				<div class="dl_clear"></div>
				<div class="dl_product_price">
					{if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
						{if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}{/if}
					{/if}
				</div>
			</div>
			<div class="dl_quick_look">QUICK LOOK</div>
		</li>
	{/foreach}
	<div class="dl_clear"></div>
	</ul>
	<!-- /Products list -->
{/if}

{literal}
<!-- Slide -->
<script type='text/javascript'>
	$(function() { 
		//$('.ajax_block_product').live('mouseover',function(){
		//	$(this).find('.dl_quick_look').css('display','block');
		//}).live('mouseout',function(){
		//	$(this).find('.dl_quick_look').css('display','none');
		//});
	}); 
</script>
<!-- Slide -->
{/literal}